<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Job/index')}>">招聘管理</a></li>
		<li class="active">编辑</li>
	</ol>

	<form id="ajaxForm" class="form-horizontal form-validata" action="<{:U('Job/update')}>" method="post">
		<fieldset><legend><i class="glyphicon glyphicon-pencil"></i> 基本信息</legend>
		<div class="form-group">
			<label class="col-md-1 control-label">用工单位</label>
			<div class="col-md-10">
				<select name="companyID" id="companyID" class="form-control" data-rule-required="true">
					<option value="">==请选择==</option>
					<volist name="company" id="vo">
					<option value="<{$vo.id}>"><{$vo.name}></option>
					</volist>.
				</select>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">招聘职位</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="name" name="name" value="<{$list['name']}>" data-rule-required="true">
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">报名接收手机</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="mobile" name="mobile" value="<{$list['mobile']}>" data-rule-required="true">
				<p>不填写则表示不接收报名短信</p>
			</div>
		</div> 

		<div class="form-group">
			<label class="col-md-1 control-label" for="sort">状态</label>
			<div class="col-md-11">
				<label class="radio-inline">
					<input type="radio" name="show" value="0" <eq name="list['show']" value="0">checked</eq>> 显示
				</label>
				<label class="radio-inline">
					<input type="radio" name="show" value="1" <eq name="list['show']" value="1">checked</eq>> 隐藏
				</label>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="sort">属性</label>
			<div class="col-md-11">
				<label class="checkbox-inline">
					<input type="checkbox" name="top" value="1" <php>if($list['top']==='1')echo checked;</php>> 置顶
				</label>
				<label class="checkbox-inline">
					<input type="checkbox" name="jiaji" value="1" <php>if($list['jiaji']==='1')echo checked;</php>> 急招
				</label>
			</div>
		</div>
       	</fieldset>

       	<fieldset><legend><i class="glyphicon glyphicon-pencil"></i> 用工详情</legend>
       	<div class="form-group">
			<label class="col-md-1 control-label">报销</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="baoxiao" name="baoxiao" value="<{$list['baoxiao']}>" data-rule-required="true">
			</div>
		</div> 

        <div class="form-group">
			<label class="col-md-1 control-label">自荐奖金</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="jiangjin" name="jiangjin" value="<{$list['jiangjin']}>" data-rule-required="true">
			</div>
		</div> 

		<div class="form-group">
			<label class="col-md-1 control-label">自荐奖金详情</label>
			<div class="col-md-10">
				<textarea name="jiangjinInfo" id="jiangjinInfo" class="form-control areatext" data-rule-required="true"><{$list['jiangjinInfo']}></textarea>
			</div>
		</div> 
        
        <div class="form-group">
			<label class="col-md-1 control-label">面试时间</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="mianshishijian" name="mianshishijian" value="<{$list['mianshishijian']}>" data-rule-required="true">
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">接送地点</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="jiesongdidian" name="jiesongdidian" value="<{$list['jiesongdidian']}>" data-rule-required="true">
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">接送时间</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="jiesongshijian" name="jiesongshijian" value="<{$list['jiesongshijian']}>" data-rule-required="true">
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">工作地区</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="area" name="area" value="<{$list['area']}>" data-rule-required="true">
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">薪资待遇</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="money" name="money" value="<{$list['money']}>" data-rule-required="true">
			</div>
		</div>			
		
		<div class="form-group">
			<label class="col-md-1 control-label">职位亮点</label>
			<div class="col-md-10">
				<div id="tag_str">
					<volist name="tag" id="vo">
					<li><span><{$vo}></span><strong>&times;</strong><input type="hidden" name="tag[]" value="<{$vo}>" /></li>
					</volist>
				</div>
				<script type="text/javascript">
				$(function(){
					$("#tag_str").on('click','strong',function(){
						$(this).parent().remove();
					})
				})
				</script>
				<input type="hidden" id="tag" value="<{$list['tag']}>" />
				<button type="button" class="btn btn-default btn-sm" onclick="sel('选择职业亮点','<{:U('Job/tag')}>','tag',550,300)">添加</button>
			</div>
		</div> 				
		
		<div class="form-group">
			<label class="col-md-1 control-label">工资待遇</label>
			<div class="col-md-10">
			  <textarea name="daiyu" id="daiyu" class="form-control areatext" data-rule-required="true"><{$list['daiyu']}></textarea>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-md-1 control-label">岗位说明</label>
			<div class="col-md-10">
			  <textarea name="gangwei" id="gangwei" class="form-control areatext" data-rule-required="true"><{$list['gangwei']}></textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">录用条件</label>
			<div class="col-md-10">
			  <textarea name="luyong" id="luyong" class="form-control areatext" data-rule-required="true"><{$list['luyong']}></textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">食宿介绍</label>
			<div class="col-md-10">
			  <textarea name="shisu" id="shisu" class="form-control areatext" data-rule-required="true"><{$list['shisu']}></textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">福利与假期</label>
			<div class="col-md-10">
			  <textarea name="fuli" id="fuli" class="form-control areatext" data-rule-required="true"><{$list['fuli']}></textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">其他说明</label>
			<div class="col-md-10">
			  <textarea name="other" id="other" class="form-control areatext" data-rule-required="true"><{$list['other']}></textarea>
			</div>
		</div>
		</fieldset>

		<fieldset><legend><i class="glyphicon glyphicon-pencil"></i> 联系方式</legend>
		<div class="form-group">
			<label class="col-md-1 control-label">联系人</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="linkman" name="linkman" value="<{$list['linkman']}>" data-rule-required="true">
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label">联系电话</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="tel" name="tel" value="<{$list['tel']}>" data-rule-required="true">
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label">联系邮箱</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="email" name="email" value="<{$list['email']}>" data-rule-required="true" data-rule-email="true">
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label">联系地址</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="address" name="address" value="<{$list['address']}>" data-rule-required="true">
			</div>
		</div>
		</fieldset>

		<div class="form-group">
			<div class="col-md-10 col-md-offset-1">
			  <input type="submit" value="编辑" class="btn btn-info">
			</div>
		</div>
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>

<script type="text/javascript">
$(function(){
	$("#companyID").val(<{$list['companyID']}>);
})
</script>
<input type="hidden" id="menu_action" value="job" />